﻿@model IEnumerable<MVC_DaLatServices.Models.ArticleFrontPage>
<div class="post excerpt ">
    @foreach (var item in Model)
    {
        <header>
            <div class="bubble"><a href="#">4</a></div>
            <h2 class="title">
                @*<a href="#" rel="bookmark">@item.Article.Title</a>*@
                    @Html.ActionLink(item.Article.Title, "Details", new { controller = MVC_DaLatServices.Models.Helper.HelperLink.ToController(item.Article.CategoryID.GetValueOrDefault()), id=item.ArticleID })
            </h2>
            <div class="post-info">
                <span class="theauthor">
                    @Html.ActionLink(item.Article.Category.Name, "Index", new { controller = item.Article.Category.Alias })
                </span>
                <time>@item.Article.CreatedDate</time>
                <span class="thecategory"><a href="#" rel="category tag">@item.Article.CreatedBy</a></span>
            </div>
        </header>
        <!--.header-->
        <div class="post-content image-caption-format-1">
            <a href="#" rel="nofollow" id="featured-thumbnail">

                <div class="featured-thumbnail">
                    <img src="images/2457315858_32ffd98aec_n-150x150.jpg" class="attachment-featured wp-post-image" height="150" width="150">
                </div>
            </a>
            <p>
                @item.Article.IntroText
            </p>
            <p class="more">
                @Html.ActionLink("Đọc thêm", "Details", new { controller = MVC_DaLatServices.Models.Helper.HelperLink.ToController(item.Article.Category.Alias) }, new { id = item.Article.Alias })
            </p>
        </div>    
    }
</div>
